package com.zhu.gmallpublisher.mapper;


import com.zhu.gmallpublisher.bean.TradeProvinceOrderCt;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * 交易域
 */
public interface TradeStatsMapper {

    /**
     * 交易域各省份订单汇总
     * @param selectDate
     * @return
     */
    @Select("select province_name,sum(order_count) as order_count from dws_trade_province_order_window " +
            "where toYYYYMMDD(stt) = #{date} group by province_id,province_name ")
    List<TradeProvinceOrderCt> selectTradeProvinceOrderCt(@Param("date") Integer selectDate);
}
